import { CategoryDTO } from '@/bean/dto';
import { ArrayResponse, QueryCategoryModel } from '@/bean/xhr';
import ajax from '.';

class CategoryService {
  // Page = (params: QueryPageModel): Promise<PageResponse<ArticleDTO>> =>
  //   ajax.get('/article/page', { params });

  All = (params: QueryCategoryModel): Promise<ArrayResponse<CategoryDTO>> =>
    ajax.get('/category/all', { params });
}

export const categoryService = new CategoryService();
